﻿@{
    Layout = "~/Views/Shared/Main.cshtml";
	TBM.Models.User UserInfo = (TBM.Models.User) ViewBag.UserInfo;
	string LargePic = String.IsNullOrEmpty(UserInfo.PicUrl) ? TBM.Core.Config.DefaultPic : UserInfo.PicUrl + "large.png?" + DateTime.Now.Ticks;
}

@section  PageStyleFile{
    <link href="~/assets/global/plugins/bootstrap-fileinput/bootstrap-fileinput.css" rel="stylesheet" type="text/css" />
	<link href="~/assets/global/plugins/jquery-file-upload/css/jquery.fileupload.css" rel="stylesheet" type="text/css"/>
    <link href="~/assets/admin/pages/css/profile.css" rel="stylesheet" type="text/css" />
    <link href="~/assets/admin/pages/css/tasks.css" rel="stylesheet" type="text/css" />
}

@section PageScriptFile{
	<script type="text/javascript" src="~/assets/global/plugins/jquery-file-upload/js/jquery.fileupload.js"></script>
	<script type="text/javascript" src="~/assets/global/plugins/jquery-upload-preview/jquery.uploadPreview.js"></script>
    <script type="text/javascript" src="~/assets/global/plugins/jquery-validation/js/jquery.validate.min.js"></script>
	<script type="text/javascript" src="~/assets/admin/pages/scripts/profile.js"></script>
	<script type="text/javascript" src="~/assets/admin/pages/scripts/profileoverview.js"></script>
	<script type="text/javascript" src="~/assets/admin/pages/scripts/profilesetting.js"></script>
}

@section PageScript{
    <script type="text/javascript">
        jQuery(document).ready(function () {
			Profile.init();
        });
    </script>
}
<div class="col-md-12">
    <!-- BEGIN PROFILE SIDEBAR -->
    <div class="profile-sidebar" style="width: 250px;">
        <!-- PORTLET MAIN -->
        <div class="portlet light profile-sidebar-portlet">
            <!-- 用户头像 -->
            <div id="profile_userpic" class="profile-userpic">
                <img src="@LargePic" class="img-responsive" />
            </div>
            <!-- END 用户头像 -->
            <!-- 用户头衔侧边栏 -->
            <div class="profile-usertitle">
                <div id="profile_primary_fullname" class="profile-usertitle-name">
                     @if(UserInfo.CNName){
						@(UserInfo.FirstName + UserInfo.LastName)
					 }else{
						@(UserInfo.LastName + " " + UserInfo.FirstName)
					 }
                </div>
                <div class="profile-usertitle-uid">
				  ( UID: @UserInfo.UID )
				</div>
				<div class="profile-usertitle-job">
				  @UserInfo.Groups
				</div>
            </div>
            <!-- END 用户头衔侧边栏 -->
            <!-- SIDEBAR MENU -->
            <div class="profile-usermenu">
                <ul id="sidebarMenu" class="nav">
                    <li>
                        <a href="~/User/ProfileOverview">
                            <i class="icon-home"></i>
                            概述 </a>
                    </li>
                    <li>
                        <a href="~/User/ProfileSetting">
                            <i class="icon-settings"></i>
                            账户设置 </a>
                    </li>
                </ul>
            </div>
            <!-- END MENU -->
        </div>
        <!-- END PORTLET MAIN -->
        <!-- PORTLET MAIN -->
        <div class="portlet light">
            <!-- STAT -->
            <div class="row"></div>
            <!-- END STAT -->
            <div>
                <h4 id="profile_fullname" class="profile-desc-title">
				关于 @if(UserInfo.CNName){
					  @(UserInfo.FirstName + UserInfo.LastName)
					  }else{
					  @(UserInfo.LastName + " " + UserInfo.FirstName)
					  }
				</h4>
                <span id="profile_memo" class="profile-desc-text"> @(String.IsNullOrEmpty(UserInfo.Memo) ? "什么信息都没有留下" : UserInfo.Memo) </span>
                <div class="margin-top-20 profile-desc-link">
				  <i class="fa fa-envelope-o"></i>
				  <a id="profile_email" href="mailto:@UserInfo.Email">@UserInfo.Email</a>
				</div>
				<div class="margin-top-20 profile-desc-link">
				  <i class="fa fa-phone"></i>
				  <span id="profile_phone">@UserInfo.Phone</span>
				</div>
				<div class="margin-top-20 profile-desc-link">
				  <i class="fa fa-qq"></i>
				  <span id="profile_qq">@UserInfo.QQ</span>
				</div>
            </div>
        </div>
        <!-- END PORTLET MAIN -->
    </div>
    <!-- END BEGIN PROFILE SIDEBAR -->
    <!-- BEGIN PROFILE CONTENT -->
    <div id="profile_content" class="profile-content"></div>
    <!-- END PROFILE CONTENT -->
</div>
